﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace KhachSan.Process.Private.Bo.Class
{
    public class TrangThai
    {
        protected string maTTP;
        protected string trangThaiPhong;
        protected int mau;
     
        public string MaTTP
        {
            get { return maTTP; }
            set { maTTP = value; }
        }
        public string TrangThaiPhong
        {
            get { return trangThaiPhong; }
            set { trangThaiPhong = value; }
        }
        public int Mau
        {
            get { return mau; }
            set { mau = value; }
        }
        public TrangThai()
        {

        }
        public void SetRoomState(ref TrangThai a,ref TrangThai b)
        {
            a.MaTTP = b.MaTTP;
            a.Mau = b.Mau;
            a.TrangThaiPhong = b.TrangThaiPhong;
        }
        public void SwapStates( TrangThai a, TrangThai b)
        {
            TrangThai temp = new TrangThai();
            SetRoomState(ref temp,ref a);
            SetRoomState(ref a,ref  b);
            SetRoomState(ref b,ref  temp);      

        }
        public TrangThai(string maTTP,string trangThaiPhong,int mau)
        {
            this.maTTP = maTTP;
            this.trangThaiPhong = trangThaiPhong;
            this.mau = mau;
        }
    }
}
